package com.marvels.dubbo.externalservice.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONObject;
import com.fintech.third.model.ZxDataReqDTO;
import com.fintech.third.model.ZxDataRespDTO;
import com.fintech.third.model.intbank.IntBankBanruDetail;
import com.fintech.third.model.intbank.IntBankBasiInfoCollection;
import com.fintech.third.model.intbank.IntBankBasic;
import com.fintech.third.model.intbank.IntBankCreditCard;
import com.fintech.third.model.intbank.IntBankCreditPaymentRecords;
import com.fintech.third.model.intbank.IntBankCredittips;
import com.fintech.third.model.intbank.IntBankDwellmessage;
import com.fintech.third.model.intbank.IntBankEndowmentInsurance;
import com.fintech.third.model.intbank.IntBankGuaranteeCount;
import com.fintech.third.model.intbank.IntBankLog;
import com.fintech.third.model.intbank.IntBankNotCredittips;
import com.fintech.third.model.intbank.IntBankNotPinshouseholds;
import com.fintech.third.model.intbank.IntBankNotQuasiCredit;
import com.fintech.third.model.intbank.IntBankPositionmesage;
import com.fintech.third.model.intbank.IntBankQueryDetail;
import com.fintech.third.model.intbank.IntBankQuerySummary;
import com.fintech.third.model.intbank.IntBankStandardCreditCard;
import com.fintech.third.model.intlog.IntDataQueryLog;
import com.fintech.third.service.ZxDataService;
import com.fintech.third.service.intbank.IntBankDataInfoService;
import com.fintech.third.service.intlog.IntDataQueryLogService;
import com.marvels.common.dto.MarvelsResultDTO;
import com.marvels.common.exception.MarvelsBusinessException;
import com.marvels.common.utils.MarvelsLogUtil;
import com.marvels.dubbo.externalservice.service.IntBankDataService;


@Service
public class IntBankDataImpl implements IntBankDataService {

	@Autowired
	private IntBankDataInfoService intBankDataInfoService;
	
	@Autowired
	private IntDataQueryLogService intDataQueryLogService;
	@Autowired
	private ZxDataService zxDataService;
	
	@Override
	public List<Map<String, Object>> detailsOfLoanInformation(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info(">>>>>>>>>dubbo查询征信数据入参:" + JSONObject.toJSONString(map));
		List<Map<String, Object>> data = intBankDataInfoService.detailsOfLoanInformation(map);
		MarvelsLogUtil.getInstance().info(">>>>>>>>>dubbo查询征信数据入参:" + JSONObject.toJSONString(data));
		return data;
	}

	@Override
	public Map<String, Object> viewRiskInfoPositionData(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>viewRiskInfoPositionData:" + JSONObject.toJSONString(map));
		Map<String, Object> dataMap = intBankDataInfoService.viewRiskInfoPositionData(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>viewRiskInfoPositionData:" + JSONObject.toJSONString(dataMap));
		return dataMap;
	}

	@Override
	public List<IntBankCreditCard> intBankCreditCardLoanId(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>intBankCreditCardLoanId:" + JSONObject.toJSONString(map));
		List<IntBankCreditCard> dataMap = intBankDataInfoService.intBankCreditCardLoanId(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>intBankCreditCardLoanId:" + JSONObject.toJSONString(dataMap));
		return dataMap;
	}

	@Override
	public IntBankBasiInfoCollection getMarvelsCreditReportData(Map<String, String> map) throws MarvelsBusinessException {
		IntBankBasiInfoCollection data = intBankDataInfoService.getMarvelsCreditReportData(map);
		return data;
	}

	@Override
	public Map<String, Object> intBankCreditPaymentRecords(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>intBankCreditPaymentRecords:" + JSONObject.toJSONString(map));
		Map<String, Object> dataMap = intBankDataInfoService.intBankCreditPaymentRecords(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>intBankCreditPaymentRecords:" + JSONObject.toJSONString(dataMap));
		return dataMap;
	}

	@Override
	public Map<String, Object> intBankCreditCard(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>intBankCreditCard:" + JSONObject.toJSONString(map));
		Map<String, Object> dataMap = intBankDataInfoService.intBankCreditCard(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>intBankCreditCard:" + JSONObject.toJSONString(dataMap));
		return dataMap;
	}

	@Override
	public List<IntBankStandardCreditCard> intBankStandardCreditCard(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>intBankStandardCreditCard:" + JSONObject.toJSONString(map));
		List<IntBankStandardCreditCard> dataList = intBankDataInfoService.intBankStandardCreditCard(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>intBankStandardCreditCard:" + JSONObject.toJSONString(dataList));
		return dataList;
	}

	@Override
	public List<IntBankEndowmentInsurance> intBankEndowmentInsurance(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>intBankEndowmentInsurance:" + JSONObject.toJSONString(map));
		List<IntBankEndowmentInsurance> dataList = intBankDataInfoService.intBankEndowmentInsurance(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>intBankEndowmentInsurance:" + JSONObject.toJSONString(dataList));
		return dataList;
	}

	@Override
	public Map<String, Object> summaryInformationData(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>summaryInformationData:" + JSONObject.toJSONString(map));
		Map<String, Object> dataMap = intBankDataInfoService.summaryInformationData(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>summaryInformationData:" + JSONObject.toJSONString(dataMap));
		return dataMap;
	}

	@Override
	public List<IntBankGuaranteeCount> intBankGuaranteeCount(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>intBankGuaranteeCount:" + JSONObject.toJSONString(map));
		List<IntBankGuaranteeCount> dataList = intBankDataInfoService.intBankGuaranteeCount(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>intBankGuaranteeCount:" + JSONObject.toJSONString(dataList));
		return dataList;
	}

	@Override
	public int saveIntBankStandardCreditCard(IntBankStandardCreditCard intBankStandardCreditCard) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>saveIntBankStandardCreditCard:" + JSONObject.toJSONString(intBankStandardCreditCard));
		Integer state = intBankDataInfoService.saveIntBankStandardCreditCard(intBankStandardCreditCard);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankStandardCreditCard:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int saveIntBankEndowmentInsurance(IntBankEndowmentInsurance intBankEndowmentInsurance) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>saveIntBankEndowmentInsurance:" + JSONObject.toJSONString(intBankEndowmentInsurance));
		Integer state = intBankDataInfoService.saveIntBankEndowmentInsurance(intBankEndowmentInsurance);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankEndowmentInsurance:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int updateIntBankEndowmentInsurance(IntBankEndowmentInsurance intBankEndowmentInsurance) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>updateIntBankEndowmentInsurance:" + JSONObject.toJSONString(intBankEndowmentInsurance));
		Integer state = intBankDataInfoService.updateIntBankEndowmentInsurance(intBankEndowmentInsurance);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>updateIntBankEndowmentInsurance:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int saveIntBankNotQuasiCredit(IntBankNotQuasiCredit intBankNotQuasiCredit) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>saveIntBankNotQuasiCredit:" + JSONObject.toJSONString(intBankNotQuasiCredit));
		Integer state = intBankDataInfoService.saveIntBankNotQuasiCredit(intBankNotQuasiCredit);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankNotQuasiCredit:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int updateIntBankNotQuasiCredit(IntBankNotQuasiCredit intBankNotQuasiCredit) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>updateIntBankNotQuasiCredit:" + JSONObject.toJSONString(intBankNotQuasiCredit));
		Integer state = intBankDataInfoService.updateIntBankNotQuasiCredit(intBankNotQuasiCredit);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>updateIntBankNotQuasiCredit:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int updateIntBankNotCredittips(IntBankNotCredittips intBankNotCredittips) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>updateIntBankNotCredittips:" + JSONObject.toJSONString(intBankNotCredittips));
		Integer state = intBankDataInfoService.updateIntBankNotCredittips(intBankNotCredittips);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>updateIntBankNotCredittips:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int saveIntBankNotCredittips(IntBankNotCredittips intBankNotCredittips) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>saveIntBankNotCredittips:" + JSONObject.toJSONString(intBankNotCredittips));
		Integer state = intBankDataInfoService.saveIntBankNotCredittips(intBankNotCredittips);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankNotCredittips:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int updateIntBankGuaranteeCount(IntBankGuaranteeCount intBankGuaranteeCount) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>updateIntBankGuaranteeCount:" + JSONObject.toJSONString(intBankGuaranteeCount));
		Integer state = intBankDataInfoService.updateIntBankGuaranteeCount(intBankGuaranteeCount);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>updateIntBankGuaranteeCount:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int saveIntBankGuaranteeCount(IntBankGuaranteeCount intBankGuaranteeCount) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>saveIntBankGuaranteeCount:" + JSONObject.toJSONString(intBankGuaranteeCount));
		Integer state = intBankDataInfoService.saveIntBankGuaranteeCount(intBankGuaranteeCount);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankGuaranteeCount:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int updateIntBankNotPinshouseholds(IntBankNotPinshouseholds intBankNotPinshouseholds) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>updateIntBankNotPinshouseholds:" + JSONObject.toJSONString(intBankNotPinshouseholds));
		Integer state = intBankDataInfoService.updateIntBankNotPinshouseholds(intBankNotPinshouseholds);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>updateIntBankNotPinshouseholds:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int saveIntBankNotPinshouseholds(IntBankNotPinshouseholds intBankNotPinshouseholds) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>saveIntBankNotPinshouseholds:" + JSONObject.toJSONString(intBankNotPinshouseholds));
		Integer state = intBankDataInfoService.saveIntBankNotPinshouseholds(intBankNotPinshouseholds);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankNotPinshouseholds:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int saveIntBankCreditPaymentRecords(IntBankCreditPaymentRecords intBankCreditPaymentRecords) {
		MarvelsLogUtil.getInstance().info(
				"入参>>>>>>>>>saveIntBankCreditPaymentRecords:" + JSONObject.toJSONString(intBankCreditPaymentRecords));
		Integer state = intBankDataInfoService.saveIntBankCreditPaymentRecords(intBankCreditPaymentRecords);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankCreditPaymentRecords:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int updateIntBankCreditCard(IntBankCreditCard intBankCreditCard) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>updateIntBankCreditCard:" + JSONObject.toJSONString(intBankCreditCard));
		Integer state = intBankDataInfoService.updateIntBankCreditCard(intBankCreditCard);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>updateIntBankCreditCard:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int saveIntBankCreditCard(IntBankCreditCard intBankCreditCard) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>saveIntBankCreditCard:" + JSONObject.toJSONString(intBankCreditCard));
		Integer state = intBankDataInfoService.saveIntBankCreditCard(intBankCreditCard);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankCreditCard:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public Map<String, Object> addQueryDetailPositionData(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>addQueryDetailPositionData:" + JSONObject.toJSONString(map));
		Map<String, Object> dataMap = intBankDataInfoService.addQueryDetailPositionData(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>addQueryDetailPositionData:" + JSONObject.toJSONString(dataMap));
		return dataMap;
	}

	@Override
	public int saveIntBankBanruDetail(IntBankBanruDetail intBankBanruDetail) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>saveIntBankBanruDetail:" + JSONObject.toJSONString(intBankBanruDetail));
		Integer state = intBankDataInfoService.saveIntBankBanruDetail(intBankBanruDetail);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankBanruDetail:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int updateIntBankBanruDetail(IntBankBanruDetail intBankBanruDetail) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>updateIntBankBanruDetail:" + JSONObject.toJSONString(intBankBanruDetail));
		Integer state = intBankDataInfoService.updateIntBankBanruDetail(intBankBanruDetail);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>updateIntBankBanruDetail:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public List<IntBankBanruDetail> intBankBanruDetail(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>deleteIntBankQuerySummary:" + JSONObject.toJSONString(map));
		List<IntBankBanruDetail> dataList = intBankDataInfoService.intBankBanruDetail(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>deleteIntBankQuerySummary:" + JSONObject.toJSONString(dataList));
		return dataList;
	}

	@Override
	public int deleteIntBankQuerySummary(long id) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>deleteIntBankQuerySummary:" + JSONObject.toJSONString(id));
		Integer state = intBankDataInfoService.deleteIntBankQuerySummary(id);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>deleteIntBankQuerySummary:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int saveIntBankQuerySummary(IntBankQuerySummary intBankQuerySummary) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>saveIntBankQuerySummary:" + JSONObject.toJSONString(intBankQuerySummary));
		Integer state = intBankDataInfoService.saveIntBankQuerySummary(intBankQuerySummary);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankQuerySummary:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int updateIntBankQuerySummary(IntBankQuerySummary intBankQuerySummary) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>updateIntBankQuerySummary:" + JSONObject.toJSONString(intBankQuerySummary));
		Integer state = intBankDataInfoService.updateIntBankQuerySummary(intBankQuerySummary);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>updateIntBankQuerySummary:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int deleteIntBankBanruDetail(long id) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>deleteIntBankBanruDetail:" + JSONObject.toJSONString(id));
		Integer state = intBankDataInfoService.deleteIntBankBanruDetail(id);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>deleteIntBankBanruDetail:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int saveIntBankBasic(IntBankBasic intBankBasic) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>saveIntBankBasic:" + JSONObject.toJSONString(intBankBasic));
		Integer state = intBankDataInfoService.saveIntBankBasic(intBankBasic);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankBasic:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int updateIntBankBasic(IntBankBasic intBankBasic) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>updateIntBankBasic:" + JSONObject.toJSONString(intBankBasic));
		Integer state = intBankDataInfoService.updateIntBankBasic(intBankBasic);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>updateIntBankBasic:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public List<IntBankBasic> intBankBasic(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>intBankBasic:" + JSONObject.toJSONString(map));
		List<IntBankBasic> dataList = intBankDataInfoService.intBankBasic(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>intBankBasic:" + JSONObject.toJSONString(dataList));
		return dataList;
	}

	@Override
	public int saveIntBankCredittips(IntBankCredittips intBankCredittips) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>saveIntBankCredittips:" + JSONObject.toJSONString(intBankCredittips));
		Integer state = intBankDataInfoService.saveIntBankCredittips(intBankCredittips);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankCredittips:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int updateIntBankCredittips(IntBankCredittips intBankCredittips) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>updateIntBankCredittips:" + JSONObject.toJSONString(intBankCredittips));
		Integer state = intBankDataInfoService.updateIntBankCredittips(intBankCredittips);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>updateIntBankCredittips:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public List<IntBankCredittips> intBankCredittips(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>intBankCredittips:" + JSONObject.toJSONString(map));
		List<IntBankCredittips> dataList = intBankDataInfoService.intBankCredittips(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>intBankCredittips:" + JSONObject.toJSONString(dataList));
		return dataList;
	}

	@Override
	public int saveIntBankPositionmesage(IntBankPositionmesage intBankPositionmesage) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>saveIntBankPositionmesage:" + JSONObject.toJSONString(intBankPositionmesage));
		Integer state = intBankDataInfoService.saveIntBankPositionmesage(intBankPositionmesage);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankPositionmesage:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int updateIntBankQueryDetail(IntBankQueryDetail intBankQueryDetail) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>updateIntBankQueryDetail:" + JSONObject.toJSONString(intBankQueryDetail));
		Integer state = intBankDataInfoService.updateIntBankQueryDetail(intBankQueryDetail);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>updateIntBankQueryDetail:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int updateIntBankPositionmesage(IntBankPositionmesage intBankPositionmesage) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>updateIntBankPositionmesage:" + JSONObject.toJSONString(intBankPositionmesage));
		Integer state = intBankDataInfoService.updateIntBankPositionmesage(intBankPositionmesage);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>updateIntBankPositionmesage:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public List<IntBankPositionmesage> intBankPositionmesage(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>intBankPositionmesage:" + JSONObject.toJSONString(map));
		List<IntBankPositionmesage> dataList = intBankDataInfoService.intBankPositionmesage(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>intBankPositionmesage:" + JSONObject.toJSONString(dataList));
		return dataList;
	}

	@Override
	public int updateIntBankStandardCreditCard(IntBankStandardCreditCard intBankStandardCreditCard) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>updateIntBankStandardCreditCard:" + JSONObject.toJSONString(intBankStandardCreditCard));
		Integer state = intBankDataInfoService.updateIntBankStandardCreditCard(intBankStandardCreditCard);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>updateIntBankStandardCreditCard:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int saveIntBankDwellmessage(IntBankDwellmessage intBankDwellmessage) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>saveIntBankDwellmessage:" + JSONObject.toJSONString(intBankDwellmessage));
		Integer state = intBankDataInfoService.saveIntBankDwellmessage(intBankDwellmessage);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankDwellmessage:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int updateIntBankDwellmessage(IntBankDwellmessage intBankDwellmessage) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>updateIntBankDwellmessage:" + JSONObject.toJSONString(intBankDwellmessage));
		Integer state = intBankDataInfoService.updateIntBankDwellmessage(intBankDwellmessage);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>updateIntBankDwellmessage:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public List<IntBankDwellmessage> intBankDwellmessage(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>intBankDwellmessage:" + JSONObject.toJSONString(map));
		List<IntBankDwellmessage> dataList = intBankDataInfoService.intBankDwellmessage(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>intBankDwellmessage:" + JSONObject.toJSONString(dataList));
		return dataList;
	}

	@Override
	public int insertIntBankLog(IntBankLog intBankLog) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>insertIntBankLog:" + JSONObject.toJSONString(intBankLog));
		Integer state = intBankDataInfoService.insertIntBankLog(intBankLog);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>insertIntBankLog:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int saveIntBankQueryDetail(IntBankQueryDetail intBankQueryDetail) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>saveIntBankQueryDetail:" + JSONObject.toJSONString(intBankQueryDetail));
		Integer state = intBankDataInfoService.saveIntBankQueryDetail(intBankQueryDetail);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>saveIntBankQueryDetail:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public int deleteIntBankQueryDetail(long id) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>deleteIntBankQueryDetail:" + JSONObject.toJSONString(id));
		Integer state = intBankDataInfoService.deleteIntBankQueryDetail(id);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>deleteIntBankQueryDetail:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public List<IntBankQuerySummary> intBankQuerySummary(Map<String, String> map) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>intBankQuerySummary:" + JSONObject.toJSONString(map));
		List<IntBankQuerySummary> dataList = intBankDataInfoService.intBankQuerySummary(map);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>intBankQuerySummary:" + JSONObject.toJSONString(map));
		return dataList;
	}

	@Override
	public List<Map<String, Object>> selectAll(Map<String, String> msg) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>selectAll:" + JSONObject.toJSONString(msg));
		List<Map<String, Object>> dataList = intDataQueryLogService.selectAll(msg);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>selectAll:" + JSONObject.toJSONString(dataList));
		return dataList;
	}

	@Override
	public List<Map<String, Object>> selectByloanIdAndSerialNum(String loanId, String serialNum) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>selectByloanIdAndSerialNum:" + loanId + ">>>>>" + serialNum);
		List<Map<String, Object>> dataList = intDataQueryLogService.selectByloanIdAndSerialNum(loanId, serialNum);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>selectByloanIdAndSerialNum:" + loanId + ">>>>>" + serialNum);
		return dataList;
	}

	@Override
	public int insertDataLog(IntDataQueryLog IntDataQueryLog) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>insertDataLog:" + JSONObject.toJSONString(IntDataQueryLog));
		int state = intDataQueryLogService.insertDataLog(IntDataQueryLog);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>insertDataLog:" + JSONObject.toJSONString(state));
		return state;
	}

	@Override
	public List<IntDataQueryLog> intDataQueryLogLoanId(Map<String, String> msg) {
		MarvelsLogUtil.getInstance().info("入参>>>>>>>>>intDataQueryLogLoanId:" + JSONObject.toJSONString(msg));
		List<IntDataQueryLog> dataList = intDataQueryLogService.intDataQueryLogLoanId(msg);
		MarvelsLogUtil.getInstance().info("出参>>>>>>>>>intDataQueryLogLoanId:" + JSONObject.toJSONString(dataList));
		return dataList;
	}

	@Override
	public IntBankBasic saveMarvelsIntBankBasic(IntBankBasic intBankBasic) throws MarvelsBusinessException{
		return intBankDataInfoService.saveMarvelsIntBankBasic(intBankBasic);
	}

	@Override
	public IntBankDwellmessage saveMarvelsIntBankDwellmessage(IntBankDwellmessage intBankDwellmessage)
			throws MarvelsBusinessException {
		return intBankDataInfoService.saveMarvelsIntBankDwellmessage(intBankDwellmessage);
	}

	@Override
	public IntBankPositionmesage saveMarvelsIntBankPositionmesage(IntBankPositionmesage intBankPositionmesage)
			throws MarvelsBusinessException {
		return intBankDataInfoService.saveMarvelsIntBankPositionmesage(intBankPositionmesage);
	}

	@Override
	public IntBankCredittips saveMarvelsIntBankCredittips(IntBankCredittips intBankCredittips)
			throws MarvelsBusinessException {
		return intBankDataInfoService.saveMarvelsIntBankCredittips(intBankCredittips);
	}

	@Override
	public IntBankNotCredittips saveMarvelsIntBankNotCredittips(IntBankNotCredittips intBankNotCredittips)
			throws MarvelsBusinessException {
		return intBankDataInfoService.saveMarvelsIntBankNotCredittips(intBankNotCredittips);
	}

	@Override
	public IntBankNotPinshouseholds saveMarvelsIntBankNotPinshouseholds(
			IntBankNotPinshouseholds intBankNotPinshouseholds)throws MarvelsBusinessException {
		return intBankDataInfoService.saveMarvelsIntBankNotPinshouseholds(intBankNotPinshouseholds);
	}

	@Override
	public IntBankNotQuasiCredit saveMarvelsIntBankNotQuasiCredit(IntBankNotQuasiCredit intBankNotQuasiCredit)throws MarvelsBusinessException {
		return intBankDataInfoService.saveMarvelsIntBankNotQuasiCredit(intBankNotQuasiCredit);
	}

	@Override
	public IntBankGuaranteeCount saveMarvelsIntBankGuaranteeCount(IntBankGuaranteeCount intBankGuaranteeCount)throws MarvelsBusinessException {
		return intBankDataInfoService.saveMarvelsIntBankGuaranteeCount(intBankGuaranteeCount);
	}

	@Override
	public List<IntBankCreditPaymentRecords> saveMarvelsIntBankCreditPaymentRecord(
			IntBankCreditPaymentRecords intBankCreditPaymentRecord) throws MarvelsBusinessException {
		return intBankDataInfoService.saveMarvelsIntBankCreditPaymentRecord(intBankCreditPaymentRecord);
	}

	@Override
	public int updateIntBankCreditPaymentRecords(IntBankCreditPaymentRecords intBankCreditPaymentRecord)
			throws MarvelsBusinessException {
		return intBankDataInfoService.updateIntBankCreditPaymentRecords(intBankCreditPaymentRecord);
	}

	@Override
	public MarvelsResultDTO saveMarvelsCreditReport(String loanId) throws MarvelsBusinessException {
		MarvelsResultDTO result = new MarvelsResultDTO();
		Map<String, String> map = null;
		try {
			map = intBankDataInfoService.saveMarvelsCreditReport(loanId);
		} catch (Exception e) {
			throw new MarvelsBusinessException(e.getMessage());
		}
		if(map != null){
			result.setCode(map.get("code"));
			result.setMessage(map.get("message"));
		}
		return result;
	}
	
	@Override
	public ZxDataRespDTO getCreditData(ZxDataReqDTO  reqDto, String dataProvider) {
		// TODO Auto-generated method stub
		//此处调涂旭的第三方接口方法
		MarvelsLogUtil.getInstance().info("此处调涂旭的第三方接口方法loanId:"+(reqDto==null?"空":reqDto.getLoanId()));
		MarvelsLogUtil.getInstance().info("此处调涂旭的第三方接口方法dataProvider:"+dataProvider);
		ZxDataRespDTO zxDataResp = zxDataService.queryZxDataList(reqDto, dataProvider);
		
		return zxDataResp;
	}

	@Override
	public ZxDataRespDTO getDetailCreditData(ZxDataReqDTO reqDto, String dataProvider) {

		MarvelsLogUtil.getInstance().info("此处调涂旭的第三方接口方法loanId:"+(reqDto==null?"空":reqDto.getReqNo()));
		MarvelsLogUtil.getInstance().info("此处调涂旭的第三方接口方法dataProvider:"+dataProvider);
		ZxDataRespDTO zxDataResp = zxDataService.queryZxDataDetail(reqDto, dataProvider);
		
		return zxDataResp;
	}
	
}
